<?php
   require('sql_connect.php');
   $sql="select student_name,student_id,ALL_BOOK_PRICE from backmanager WHERE student_name='{$_POST['student_name']}' AND student_id='{$_POST['student_id']}'";
   $info=$mysqli->query($sql);
   $result=$info->fetch_object();
   if(isset($result))
   {
   echo "姓名:".$result->student_name."<br/>";
   echo "学号:".$result->student_id."<br/>";
   echo "订书的总金额:".$result->ALL_BOOK_PRICE."元";
   }
	else
   {
	  echo '请输入名字与学号';
   }
?>